<?php
/**
 * @package		JomSocial
 * @subpackage 	Template 
 * subversion test
 * prueba
 * @copyright (C) 2008 by Slashes & Dots Sdn Bhd - All rights reserved!
 * @license		GNU/GPL, see LICENSE.php
 **/
  $stylelink = '<script type="text/javascript" src="./components/com_community/templates/stillhere/js/jquery-1.6.2.min.js"></script>' ."\n";

 $document = JFactory::getDocument();
$document->addCustomTag($stylelink);

defined('_JEXEC') or die();


$stillies="8,352";
$memories="10";
$memorials="40";
$legacies="33";


?>	
	<!-- begin: .profile-box -->
	
	
	<script>
  //$(document).ready(function () {
 
  //$("#tata").toggle(200);
//});



  </script>


	<div class="profile-box">
	
	
	
	
	

		<div style="position:absolute;top:43px;left:45px;"class="ps-logo2" ></div>
		<div style="position:absolute;left:90px;top:45px;width:180px;" class="still-text">
				<?php echo $user->getDisplayName(); ?> 
				
				
			</div>
		
		
		<!--
		<div class="profile-likes">
			<span id="like-container"><?php //echo $likesHTML; ?></span>
			
		</div> -->

		<!-- Short Profile info -->
		<div class="profile-info">
			
			<div style="position:absolute;left:20px;width:700px;" id="profile-status"></div>
			
			
			<div style="width:450px;height:80px;position:relative;left:60px;">
			<?php if( $isMine ): ?>
				<div align="center">
						
					
					<div style="position:relative;top:20px;"id="comillas"></div>
					
					
					<div style="height:30px;font-style:italic;position:relative;left:30px;top:-4px;overflow:hidden;width:395px;font-family:verdana,sans serif, monospace;"  ><span style="font-size:19px !important;text-align:justify !important;color:#000;" id="profile-status-message"><div id="estatus-sh" align="<?php if (strlen($profile->status)>=40) echo justify; else echo left;?>"><?php if (strlen($profile->status)>=33) { echo substr($profile->status,0,33).'...';} else{echo substr($profile->status,0,33);}?></div></span></div>
					<!--<div style="color:#000;height:30px;font-style:italic;position:absolute;right:-23px;top:31px;height:15px;font-size:19px;"><?php// if (strlen($profile->status)>33) echo '...'; else {}?></div>-->
				
					
					<div style="border-bottom:3px solid #000;width:100px;position:relative;left:-118px;top:-5px;"></div>
					<br>
					<div style="word-wrap: break-word;position:relative;left:-45px;top:-20px;color:#000;width:250px;height:20px;font-size:12px !important;text-align:left;"class="small"><?php echo $profile->posted_on; ?></div>
				</div>
				<?php endif; ?>
			</div>
			
			
			
			<div style="position:relative;left:-170px;width:700px;" id="profile-status2"></div>
			<br>
			
			<div class="profile-avatar">
		<?php if( $isMine ): ?><a href="<?php echo CRoute::_('index.php?option=com_community&view=profile&task=uploadAvatar'); ?>"><?php endif; ?><img src="<?php echo $profile->largeAvatar; ?>" alt="<?php echo $this->escape( $user->getDisplayName() ); ?>" /><?php if( $isMine ): ?></a><?php endif; ?>
		
		
		
		
		
		</div>
		
		<div style="width:400px;height:90px;position:relative;left:-150px;">
			<div style="position:relative;"class="still-header"><?php echo JText::_('COM_COMMUNITY_PROFILE-STILL_STILLIES'); ?></div>
			<div style="position:relative;top:10px;"class="still-proftxt2"><?echo $stillies;?></div>
			<div style="position:relative;top:-55px;left:90px;"class="still-proftxt profile-coin"></div>
			<!--<div style="position:relative;left:110px;top:-30px;"class="profile-coin"></div>-->
			
			<div style="position:relative;top:-173px;left:210px;"class="ps-right">
			
					<div style="position:relative;left:14px;top:40px;"class="still-header"><?php echo JText::_('COM_COMMUNITY_MEMBER_SINCE'); ?></div>
					<!--<div style="float:right;position:relative;right:20px;" class="ps-calendar"></div>-->
					<div style="position:relative;top:40px;font-size:13px !important;text-align:center;border-left : 2pt dotted #c0bebe;color:#000;"class="ps-wr still-text"><?php echo JHTML::_('date', $registerDate , JText::_('DATE_FORMAT_LC2')); ?></div>
					<div style="position:relative;left:130px;top:-36px;" class="ps-calendar"></div>
				</div>
			</div>	
			
			<div class="ps-right-d">
			
					
			</div>
			
		
			
			<div style="position:relative;left:-30px;top:-53px;" class="still-header"><?php echo JText::_('COM_COMMUNITY_PROFILE-STILL_MEMORIES'); ?></div>
			<div style="position:relative;left:90px;top:-70px;" class="still-header"><?php echo JText::_('COM_COMMUNITY_PROFILE-STILL_MEMORIALS'); ?></div>
			<?php if( $isMine ){ ?>
			<div style="position:relative;left:210px;top:-89px;" class="still-header"><?php echo JText::_('COM_COMMUNITY_PROFILE-STILL_LEGACIES'); ?></div>
			<?php }else {
			
			echo '
			<div style="color:#dddddd !important;position:relative;left:210px;top:-89px;" class="still-header">.</div>
			';
			
			}?>
			
			<div style="position:relative;left:-150px;top:-30px;"class="ps-f">
			
					
			
			<div style="border-right: 2pt dotted #c0bebe;position:relative;left:-20px;top:-60px;width:110px !important;"class="ps-frien-cuadro ">
				<div style="position:relative;top:10px;left:50px;"class="ps-frien"></div>
				<div style="position:relative;top:-59px;text-align:center;"class="still-header"><?php echo JText::_('COM_COMMUNITY_PROFILE-STILL_FRIENDS'); ?></div>
				<div style="text-align:center;word-wrap: break-word;position:relative;top:-43px;left:-40px;"class="still-proftxt "><?php echo $user->getFriendCount();?></div>
					
				
				</div>
			
				
				
				<div style="border-right: 2pt dotted #c0bebe;position:relative;left:100px;top:-130px;width:110px !important;"class="ps-frien-cuadro ">
					<br>
					<div style="text-align:left;word-wrap: break-word;"class="still-proftxt"><?echo $memories;?></div>
					<div style="position:relative;left:50px;top:-40px;"class="ps-blogo"></div>
				</div>
				
				<div style="border-right: 2pt dotted #c0bebe;position:relative;left:220px;top:-200px;width: 110px !important;"class="ps-frien-cuadro ">
					<br>
					<div style="text-align:left;word-wrap: break-word;"class="still-proftxt"><?echo $memorials;?></div>
					<div style="position:relative;left:50px;top:-40px;" class="ps-memorials"></div>
				
				</div>
				
				<?php if( $isMine ){ ?>
				
				<div style="border-right: 2pt dotted #c0bebe;position:relative;left:340px;top:-270px;width: 110px !important;"class="ps-frien-cuadro ">
					<br>
					<div style="text-align:left;word-wrap: break-word;"class="still-proftxt"><?echo $legacies;?></div>
			
					<div style="position:relative;left:50px;top:-40px;" class="ps-legacy"></div>
				
				</div>
					<?php }else { echo '<div style="position:relative;left:340px;top:-270px;width: 110px !important;"></div>';}?>	
			
			
			<div style="position:absolute;left:535px;top:0px;"class="button_ps" onclick='$("#about-ps").toggle(200);ocultar();'  ><?echo JText::_('COM_COMMUNITY_APPS_LIST_ABOUT');?></div>
			
			</div>
			
			
			
			
		</div>
		
		<div style="border-bottom:1px dotted #9f9d9d;border-top:1px dotted #9f9d9d;"class="ps-footer">
		
		<div style="position:relative;width:143px;height:35px;"id="bar">
		<div style="position:relative;left:30px;top:5px;"class="ps-logo1"></div>
		<div style="position:relative;top:-19px;left:70px;width:55px !important;" class="still-bar"><?echo JText::_('COM_COMMUNITY_PROFILE-STILL_BIOSPIRAL');?></div>
		</div>
		
		<div style="position:relative;left:143px;top:-35px;width:150px;height:35px;"id="bar">
		<div style="position:relative;top:5px;left:30px;" class="ps-logo2"></div>
		<div style="position:relative;top:-18px;left:65px;"class="still-bar"><?echo JText::_('COM_COMMUNITY_PROFILE-STILL_MEMORIALS');?></div>
		</div>
		
		<div style="position:relative;left:293px;top:-70px;width:144px;height:35px;"id="bar">
		<div style="position:relative;top:5px;left:25px;" class="ps-logo3"></div>
		<div style="position:relative;top:-18px;left:54px;"class="still-bar"><?echo JText::_('COM_COMMUNITY_PROFILE-STILL_MESSAJE');?></div>
		</div>
		
		<div style="position:relative;left:437px;top:-105px;width:142px;height:35px;"id="bar">
		<div style="position:relative;top:5px;left:30px;" class="ps-logo4"></div>
		<div style="position:relative;top:-18px;left:65px;"class="still-bar"><?echo JText::_('COM_COMMUNITY_PROFILE-STILL_PHOTOS');?></div>
		</div>
		
		
		<div style="position:relative;left:579px;top:-140px;width:140px;height:35px;"id="bar">
		<div style="position:relative;top:5px;left:30px;" class="ps-logo5"></div>
		<div style="position:relative;top:-18px;left:65px;"class="still-bar"><?echo JText::_('COM_COMMUNITY_PROFILE-STILL_VIDEOS');?></div>
		</div>
		
		</div>
		
		
	</div>
	<!-- end: .profile-box -->


	<?php if( !$isMine ): ?>
<!--	<div  class="profile-toolbox-bl" >
	<div class="profile-toolbox-br">
		<ul class="cResetList small-button profile">
			<?php if(!$isFriend && !$isMine): ?>
		    <li class="btn-add-friend">
				<a href="javascript:void(0)" onclick="joms.friends.connect('<?php echo $profile->id;?>')"><span><?php echo JText::_('COM_COMMUNITY_PROFILE_ADD_AS_FRIEND'); ?></span></a>
			</li>
			<?php endif; ?>

			<?php if($config->get('enablephotos')): ?>
		  <!--  <li class="btn-gallery">
				<a href="<?php echo CRoute::_('index.php?option=com_community&view=photos&task=myphotos&userid='.$profile->id); ?>">
					<span><?php echo JText::_('COM_COMMUNITY_PHOTOS'); ?></span>
				</a>
			</li>-->
			<?php endif; ?>
<!--
			<?php if($showBlogLink): ?>
		    <li class="btn-blog">
				<a href="<?php echo JRoute::_('index.php?option=com_myblog&blogger=' . $user->getDisplayName() . '&Itemid=' . $blogItemId ); ?>">
					<span><?php echo JText::_('COM_COMMUNITY_BLOG'); ?></span>
				</a>
			</li>
			<?php endif; ?>
							
			<?php if($config->get('enablevideos')): ?>
		    <li class="btn-videos">
				<a href="<?php echo CRoute::_('index.php?option=com_community&view=videos&task=myvideos&userid='.$profile->id); ?>">
					<span><?php echo JText::_('COM_COMMUNITY_VIDEOS_GALLERY'); ?></span>
				</a>
			</li>
			<?php endif; ?>

			<?php if( !$isMine && $config->get('enablepm')): ?>
		    <li class="btn-write-message">
				<a onclick="<?php echo $sendMsg; ?>" href="javascript:void(0);">
					<span><?php echo JText::_('COM_COMMUNITY_INBOX_SEND_MESSAGE'); ?></span>
				</a>
			</li>
			<?php endif; ?>
		</ul>
	</div>
	</div>-->
	<?php endif; ?>
	
	
	
<div  id="control">
<?php 


$userstatus->render(); 


?>
</div>
<br>
<script>
function ocultar(){

if ($('#control').is(":hidden"))
{
$('#control').show();

}
else
{
$('#control').hide();

}



}



</script>

